<%@page language="java" pageEncoding="UTF-8"%>
<%@include file="/views/common/include/taglib.jsp"%>
<link type="text/css" rel="stylesheet" href="${ctx }/css/dlifestyle/admin.css" />
<link type="text/css" rel="stylesheet" href="${ctx }/css/dlifestyle/sectionparent.css" />
<link rel="stylesheet" href="${ctx}/css/dlifestyle/swipebox.css">
<script src="${ctx}/js/lib/jquery.swipebox.min.js"></script>
<script type="text/javascript">
    jQuery(function($) {
        $(".swipebox").swipebox();
    });
</script>
<script type="text/javascript">
    //返回上一页
    function cancel() {
        loadContent("/user/userList?userType=${user.userType}");
    }
</script>
<section class="">
    <div style="height: 40px; line-height: 40px;">
        <div class="forword_area"></div>
        <div class="location">当前位置：${sessionScope.currcent_position}</div>
    </div>
    <hr>
    <div class="panel panel-default" style="height: auto">
        <div class="editTitle">
            <div style="height: 41px; width: 190px; float: left;">
                <img style="float: left; margin-left: 37px; margin-top: 9.5px;" src="${ctx}/images/new_edit.png">
                <h4 style="letter-spacing: 0">用户信息详情</h4>
            </div>
            <div>
                <a style="float: right; margin-right: 20px; margin-top: -2px;" title="关闭" onclick="cancel();"><img src="${ctx}/images/new_close.png" /></a>
            </div>
        </div>
        <div id="replyList" class="right" style="margin-top: -10px;">
            <div class="modal-header">
                <div id="form" class="form" style="min-height: 50px; margin-top: 10px; border-top: 1px solid #edeef3; font-size: 14px;">
                    <div class="itemEdit" style="border-bottom: 1px solid #CBD5DD; height: 150px;">
                        <span class="col-sm-1 editlableDetail" style="height: 150px; line-height: 150px; font-size: 14px;">图像：</span>
                        <div class="fldetailImg">
                            <c:if test="${user.logo == null || user.logo == ''}">
                                <a href="${ctx}/images/default.jpg" class="swipebox"> <img alt="头像~~:)s" id="preview3" style="width: 100px; height: 100px; float: left;" title="快上传图像吧"
                                    src="${ctx}/images/default.jpg" />
                                </a>
                            </c:if>
                            <c:if test="${user.logo != null && user.logo != ''}">
                                <a href="${sessionScope.image_logo}${user.logo}" class="swipebox"> <img alt="头像~~:)s" id="preview3" style="width: 100px; height: 100px; float: left;"
                                    src="${sessionScope.image_logo}${user.logo}" />
                                </a>
                            </c:if>
                        </div>
                    </div>
                    <div class="itemEdit" style="border-bottom: 1px solid #CBD5DD;">
                        <span class="col-sm-1 editlableDetail" style="font-size: 14px;">用户账号：</span>
                        <div class="fldetail-4r">${user.loginname }</div>
                        <span class="col-sm-1 editlableDetail" style="font-size: 14px;">真实姓名：</span>
                        <div class="fldetail-4r">${user.username }</div>
                    </div>
                    <div class="itemEdit" style="border-bottom: 1px solid #CBD5DD;">
                        <span class="col-sm-1 editlableDetail" style="font-size: 14px;">用户昵称：</span>
                        <div class="fldetail-4r">${user.nickname }</div>
                        <span class="col-sm-1 editlableDetail" style="font-size: 14px;">状态：</span>
                        <div class="fldetail-4r">${user.state  == 1 ? '正常' : '禁用'}</div>
                    </div>
                    <div class="itemEdit" style="border-bottom: 1px solid #CBD5DD;">
                        <span class="col-sm-1 editlableDetail" style="font-size: 14px;">手机：</span>
                        <div class="fldetail-4r">${user.phone }</div>
                        <span class="col-sm-1 editlableDetail" style="font-size: 14px;">邮箱：</span>
                        <div class="fldetail-4r">${user.email}</div>
                    </div>
                    <div class="itemEdit" style="border-bottom: 1px solid #CBD5DD;">
                        <span class="col-sm-1 editlableDetail" style="font-size: 14px;">性别：</span>
                        <div class="fldetail-4r">${user.sex  == 1 ? '男' : '女'}</div>
                        <span class="col-sm-1 editlableDetail" style="font-size: 14px;">用户类型：</span>
                        <div class="fldetail-4r">
                            <c:forEach items="${userTypes}" var="item">
                                <c:if test="${item.value == user.userType}">${item.label}</c:if>
                            </c:forEach>
                        </div>
                    </div>
                    <div class="itemEdit" style="border-bottom: 1px solid #CBD5DD;">
                        <span class="col-sm-1 editlableDetail" style="font-size: 14px;">上次登录时间：</span>
                        <div class="fldetail-4r">
                            <fmt:formatDate value="${user.lastLoginTime}" pattern="yyyy-MM-dd" />
                        </div>
                        <span class="col-sm-1 editlableDetail" style="font-size: 14px;">登陆次数：</span>
                        <div class="fldetail-4r">${user.loginTimes}</div>
                    </div>
                    <div class="itemEdit" style="border-bottom: 1px solid #CBD5DD;">
                        <span class="col-sm-1 editlableDetail" style="font-size: 14px;">创建时间：</span>
                        <div class="fldetail-4r">
                            <fmt:formatDate value="${user.createdatetime}" pattern="yyyy-MM-dd" />
                        </div>
                        <span class="col-sm-1 editlableDetail" style="font-size: 14px;">修改时间：</span>
                        <div class="fldetail-4r">
                            <fmt:formatDate value="${user.modifydatetime}" pattern="yyyy-MM-dd" />
                        </div>
                    </div>
                    <c:if test="${user.userType != 5}">
                        <div class="itemEdit" style="border-bottom: 1px solid #CBD5DD;">
                            <span class="col-sm-1 editlableDetail" style="font-size: 14px;">所属公司：</span>
                            <div class="fldetail-4r">${user.companyName }</div>
                            <span class="col-sm-1 editlableDetail" style="font-size: 14px;">所属角色：</span>
                            <div class="fldetail-4r">${user.roles }</div>
                        </div>
                    </c:if>
                    <div style="text-align: center; background: #F7F8FA;">
                        <button style="margin-top: 20px;" class="buttonCancle" onclick="cancel();">返&nbsp;&nbsp;回</button>
                    </div>
                </div>
            </div>
            <%@include file="/views/common/footer.jsp"%>
        </div>
    </div>
</section>
